import pytest
from log import log_set
from mail import send_mail
import os
if __name__ == '__main__':
    log_set()
    pytest.main(["-s","testyk.py","--alluerdir ./baogao","--clean-alluredir"])
    os.system("allure ./gendata ./baogao./ --clean")
    send_mail("log.txt, ./报告/index.thml")